package com.app.partner.control;

import com.app.partner.model.User;
import com.app.partner.model.see;
import com.app.partner.service.UserService;
import com.app.partner.service.likeseeService;
import com.app.partner.service.likeseeServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.List;

@RestController
@RequestMapping("/likeseeController")

public class likeseeController {
   @Autowired
    likeseeService likeseeService;

    @RequestMapping(value="/partlikeseeServlet",method= RequestMethod.POST)
    public List<see> findAll() {
        List<see> likesee = new ArrayList<>();
        try {
            likesee = likeseeService.findAll();
        } catch (Exception e) {
            e.printStackTrace();
        }
        return likesee;
    }



}
